home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / automake-1.8 / am / python.am < prev    next >
Encoding:
Text File  |  2005-10-16  |  3.4 KB  |  99 lines

  1. ## automake - create Makefile.in from Makefile.am
  2. ## Copyright (C) 1999, 2001, 2003, 2004 Free Software Foundation, Inc.
  3.  
  4. ## This program is free software; you can redistribute it and/or modify
  5. ## it under the terms of the GNU General Public License as published by
  6. ## the Free Software Foundation; either version 2, or (at your option)
  7. ## any later version.
  8.  
  9. ## This program is distributed in the hope that it will be useful,
  10. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. ## GNU General Public License for more details.
  13.  
  14. ## You should have received a copy of the GNU General Public License
  15. ## along with this program; if not, write to the Free Software
  16. ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  17. ## 02111-1307, USA.
  18.  
  19.  
  20. ## ------------ ##
  21. ## Installing.  ##
  22. ## ------------ ##
  23.  
  24. if %?INSTALL%
  25. am__installdirs += "$(DESTDIR)$(%NDIR%dir)"
  26. ?BASE?%DIR%PYTHON_INSTALL = $(INSTALL_DATA)
  27. ?!BASE?%DIR%PYTHON_INSTALL = $(install_sh_DATA)
  28. ?EXEC?.PHONY install-exec-am: install-%DIR%PYTHON
  29. ?!EXEC?.PHONY install-data-am: install-%DIR%PYTHON
  30. install-%DIR%PYTHON: $(%DIR%_PYTHON)
  31.     @$(NORMAL_INSTALL)
  32.     test -z "$(%NDIR%dir)" || $(mkdir_p) "$(DESTDIR)$(%NDIR%dir)"
  33. ?!BASE?    @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  34. ?!BASE?    list='$(%DIR%_PYTHON)'; dlist=''; for p in $$list; do\
  35. ?BASE?    @list='$(%DIR%_PYTHON)'; dlist=''; for p in $$list; do\
  36. ## A file can be in the source directory or the build directory.
  37.       if test -f "$$p"; then b=; else b="$(srcdir)/"; fi; \
  38.       if test -f $$b$$p; then \
  39. ## Compute basename of source file.  Unless this is a nobase_ target, we
  40. ## want to install 'python/foo.py' as '$(DESTDIR)$(%NDIR%dir)/foo.py',
  41. ## not '$(DESTDIR)$(%NDIR%dir)/python/foo.py'.
  42. ?BASE?        d=`echo $$p | sed -e 's,^.*/,,'`; \
  43. ?!BASE?        case $$p in \
  44. ?!BASE?          $(srcdir)/*) d=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  45. ?!BASE?          *) d=$$p;; \
  46. ?!BASE?        esac; \
  47.         dlist="$$dlist $$d"; \
  48. ## Don't perform translation, since script name is important.
  49.         echo " $(%DIR%PYTHON_INSTALL) '$$b$$p' '$(DESTDIR)$(%NDIR%dir)/$$d'"; \
  50.         $(%DIR%PYTHON_INSTALL) "$$b$$p" "$(DESTDIR)$(%NDIR%dir)/$$d"; \
  51.       else :; fi; \
  52.     done; \
  53. ## Byte-compile must be done at install time, since file times are
  54. ## encoded in the actual files.
  55.     test -z "$$dlist" || \
  56.     PYTHON=$(PYTHON) $(py_compile) --basedir "$(DESTDIR)$(%NDIR%dir)" $$dlist
  57. endif %?INSTALL%
  58.  
  59.  
  60. ## -------------- ##
  61. ## Uninstalling.  ##
  62. ## -------------- ##
  63.  
  64. if %?INSTALL%
  65. .PHONY uninstall-am: uninstall-%DIR%PYTHON
  66. uninstall-%DIR%PYTHON:
  67.     @$(NORMAL_UNINSTALL)
  68. ?!BASE?    @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  69. ?!BASE?    list='$(%DIR%_PYTHON)'; dlist=''; for p in $$list; do\
  70. ?BASE?    @list='$(%DIR%_PYTHON)'; dlist=''; for p in $$list; do\
  71. ?BASE?      d=`echo $$p | sed -e 's,^.*/,,'`; \
  72. ?!BASE?        case $$p in \
  73. ?!BASE?          $(srcdir)/*) d=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  74. ?!BASE?          *) d=$$p;; \
  75. ?!BASE?        esac; \
  76.       rm -f "$(DESTDIR)$(%NDIR%dir)/$$d"; \
  77. ## This is to remove the .pyc and .pyo byte compiled versions (a bit
  78. ## of a hack).
  79.       rm -f "$(DESTDIR)$(%NDIR%dir)/$${d}c"; \
  80.       rm -f "$(DESTDIR)$(%NDIR%dir)/$${d}o"; \
  81.     done
  82. endif %?INSTALL%
  83.  
  84.  
  85. ## ---------- ##
  86. ## Cleaning.  ##
  87. ## ---------- ##
  88.  
  89. ## There is nothing to clean here since files are
  90. ## byte-compiled when (and where) they are installed.
  91.  
  92. ## -------------- ##
  93. ## Distributing.  ##
  94. ## -------------- ##
  95.  
  96. if %?DIST%
  97. DIST_COMMON += %DISTVAR%
  98. endif %?DIST%
  99.